<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>注册</title>
</head>
<body>
<h1>用户注册</h1>

<form action="${pageContext.request.contextPath}/user/register" method="post" enctype="multipart/form-data">
    用户名：<input type="text" name="name" placeholder="请输入用户名">
    <br>
    密码：<input type="password" name="password" placeholder="请输入密码">
    <br>
    头像：<input type="file" name="file">
    <br>
    <input type="submit" value="注册">
</form>
<c:if test="${not empty msg}">
    <script>
        alert("${msg}");
    </script>
</c:if>

</body>
</html>